import LayoutVue from '@/components/layout/Layout.vue'

export default {
  path: '/manuscriptPool',
  component: LayoutVue,
  redirect: '/manuscriptPool/pendingReviewManu',
  meta: {
    title: '正能量稿件池',
    c_icon: 'icon-manu',
    menu: true,
    url: 'article/manager/positive',
  },
  children: [
    {
      path: 'pendingReviewManu',
      name: 'pendingReviewManu',
      component: () => import('@/views/manageEnd/Home/PendingReviewManuscript/PendingReviewManuscript.vue'),
      meta: { title: '待审核稿件', url: 'article/manager/needAudit' },
    },
    {
      path: 'entryManuscript',
      name: 'entryManuscript',
      component: () => import('@/views/manageEnd/Home/EntryManuscript/EntryManuscript.vue'),
      meta: { title: '入池稿件', url: 'article/manager/enterArticle' },
    },
    {
      path: 'manuRankList',
      name: 'manuRankList',
      component: () => import('@/views/manageEnd/Home/ManuRankList/ManuRankList.vue'),
      meta: { title: '稿件排行榜', url: 'article/top' },
    },

    /* 此路由为了跳转到详情创建，父级路由为了占位，否则顶部的当前位置显示不对。无其他作用。*/
    {
      path: 'entryManuscript',
      name: 'entryManuscriptPlaceholder',
      component: () => import('@/views/manageEnd/Home/EntryManuscript/EntryManuscriptPlaceholder.vue'),
      meta: { title: '入池稿件', hidden: true, whiteList: true },
      children: [
        {
          path: 'manuEffectAssess',
          name: 'manuEffectAssess',
          component: () =>
            import('@/views/manageEnd/Home/EntryManuscript/Children/ManuEffectAssess/ManuEffectAssess.vue'),
          meta: { title: '稿件效果评估' },
        },
        {
          path: 'issueDirective',
          name: 'issueDirective',
          component: () => import('@/views/common/IssueDirective/IssueDirective.vue'),
          meta: { title: '下发指令' },
        },
      ],
    },
  ],
}
